project(monitor_soui)
add_definitions(-DUNICODE -D_UNICODE)
set(CMAKE_CXX_FLAGS_DEBUG "/MTd /Zi /Ob0 /Od /RTC1")

exec_program("D:/DH_Work/OpenSource/soui/tools/uiresbuilder.exe" D:/DH_Work/OpenSource/monitor ARGS -p uires -i uires/uires.idx -r res/soui_res.rc2 -h res/resource.h idtable)
include_directories(
    "D:/DH_Work/OpenSource/soui/config/"
    "D:/DH_Work/OpenSource/soui/components/"
    "D:/DH_Work/OpenSource/soui/utilities/include/"
    "D:/DH_Work/OpenSource/soui/SOUI/include/"
    "D:/DH_Work/OpenSource/soui/controls.extend/"
    "D:/DH_Work/OpenSource/soui/SOUI/include/core/"
)
link_directories(
    "D:/DH_Work/OpenSource/soui/bin64/"
)

aux_source_directory(. code)
add_executable(monitor_soui ${code})
target_link_libraries(monitor_soui souid.lib utilitiesd.lib)
set_target_properties(monitor_soui PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")